<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>消费记录 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/table_function.js"></script>
<script type="text/javascript">
	//获得选中文件的文件名
	function GetCheckfolderItem()
	{
		var allSel='';
		if(document.form1.deleteid.value) return document.form1.deleteid.value;
		for(i=0;i<document.form1.deleteid.length;i++)
		{
			if(document.form1.deleteid[i].checked)
			{
				if(allSel=='')
				allSel=document.form1.deleteid[i].value;
				else
				allSel=allSel+","+document.form1.deleteid[i].value;
			}
		}
		return allSel;
	}
	
	function DoSubmit()
	{
		var selid = GetCheckfolderItem();
		if(selid=='') {
			alert("你没选中任何信息！");
			return false;
		}
		if(window.confirm("你确定要删除这些消息么？"))
		{
			location = "operation.php?dopost=del&ids="+selid;
		}
	}
</script>
</head>
<body>


<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 
<script>
	$(function(){
		var ids = $('#2');
		var span  = ids.find('.icons');
		var name = span.attr('class');
		var newName = name.replace(/(\S+)$/,'$1_h');
		span.addClass(newName);
		span.parent('a').addClass('cur');
	})
</script>

<div class="main_right">

<div class="common_title">充值消费</div>

<div class="znxx_class">
<a href="buy.php">充值金币</a>
<a href="recharge.php">充值记录</a>
<a href="operation.php" class="cur">消费记录</a>
</div>

<form action="pm.php" method="post" name="form1">
<input type='hidden' name='dopost' value='del' />
<table class="xfmx_table">
<thead>
<tr>
<th style="width:15%">订单号</th>
<th>产品</th>
<th style="width:10%">消费</th>
<th style="width:10%">卖家</th>
<th style="width:10%">QQ</th>
<th style="width:15%">状态</th>
<th style="width:8%">操作时间</th>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>{dede:field.buyid/}</td>
<td><?php if($fields['product']=="member") { echo $fields['oldinfo'];}elseif($fields['buyid']=="tixian"){ echo $fields['oldinfo'];}else{ ?><a href='/plus/view.php?aid=<?php echo $fields['arcid'];?>' style='font-size:14px;margin-left:5px;color:#424242' target='_blank'><?php echo $fields['oldinfo']; ?></a><?php } ?>[<font style="color:red;"><?php echo $fields['pname'];?></font>]</td>
<td><span color="blue"><?php  echo $fields['money']; ?></span>金币</td>
<td>{dede:field.mai2/}</td>
<td>{dede:field.qq/}</td>
<td><?php if($fields['glock']==1){echo "已冻结，请联系管理员";}else{ if($fields['sta']==0){ echo "<font color=red>未完成</font>";}else if($fields['sta']==3){echo '<a href="/user/surplus_action_mb.php?buyid='.$fields['buyid'].'"><font color="blue">请支付余款</font></a>';}elseif($fields['sta']==1){echo '<font color=blue>预付款已付，请等待</font>';}else{echo '<font color=green>已完成</font>';}}?></td>
<td>{dede:field.mtime function="GetDateMk(@me)" /}</td>
</tr>
{/dede:datalist}
</tbody>
</table>
</form>

<div class="znxx_tools">
<style type="text/css">
.pageList a:hover,.pageList strong{background:#6aa6f1;}
</style>
<div class="pageList">{dede:pagelist listsize=5/}</div>
</div>


</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>

<script>
	//会员升级
	var typeid = document.querySelector('#typeid');
	var divs = document.querySelectorAll('.hysj_jiage li div');
	for(var i=0,len=divs.length;i<len;i++){
		divs[i].onclick = divCLickHandler;
	}
	function divCLickHandler(e){
		for(var i=0,len=divs.length;i<len;i++){
			divs[i].className = '';
		}
		this.className = 'cur';
		typeid.value = this.getAttribute('_typeid');
	}
</script>
<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>